package com.mypack.student.service.student;

import com.mypack.student.dto.student.StudentDTO;
import com.mypack.student.dto.student.StudentDeleteDTO;
import com.mypack.student.dto.student.StudentExportDTO;
import com.mypack.student.dto.student.StudentSearchDTO;
import com.mypack.student.exception.IdCartNoExistException;

import java.util.List;

public interface StudentService {

    List<StudentDTO> listStudents(StudentSearchDTO searchDTO,boolean isPage);

    void addStudent(StudentDTO studentDTO) throws IdCartNoExistException;

    void updateStudent(StudentDTO studentDTO) throws IdCartNoExistException;

    void delete(StudentDeleteDTO studentDeleteDTO);

    List<StudentExportDTO> exportStudents(StudentSearchDTO searchDTO);

}
